﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;

namespace HCQ2_Model.VRDD.InputDto._210908
{
    /// <summary>
    ///  获取商品价格
    /// </summary>
    public class CommPriceInput
    {
        /// <summary>
        ///  商品id
        /// </summary>
        [Required]
        [RegularExpression("^([1-9][0-9]*)$", ErrorMessage = "请传入正确的商品id")]
        public int fileID { get; set; }
        /// <summary>
        ///  规格项列表
        /// </summary>
        [Required]
        public List<SpecOptionInput> specOptionList { get; set; }
    }
    /// <summary>
    ///  规格项列表
    /// </summary>
    public class SpecOptionInput
    {
        /// <summary>
        ///  规格项ID
        /// </summary>
        [Required]
        public int optionID { get; set; }
    }
}